import request from '@/utils/request'

// 查询互市待放行列列表
export function listBtReleaseableList(query) {
  return request({
    url: '/bt/btReleaseableList/list',
    method: 'get',
    params: query
  })
}

// 查询互市待放行列详细
export function getBtReleaseableList(id) {
  return request({
    url: '/bt/btReleaseableList/getInfo/' + id,
    method: 'get'
  })
}

// 新增互市待放行列
export function addBtReleaseableList(data) {
  return request({
    url: '/bt/btReleaseableList/add',
    method: 'post',
    data: data
  })
}

// 修改互市待放行列
export function updateBtReleaseableList(data) {
  return request({
    url: '/bt/btReleaseableList/edit',
    method: 'post',
    data: data
  })
}

// 删除互市待放行列
export function delBtReleaseableList(id) {
  return request({
    url: '/bt/btReleaseableList/remove/' + id,
    method: 'get'
  })
}

// 导出互市待放行列
export function exportBtReleaseableList(query) {
  return request({
    url: '/bt/btReleaseableList/export',
    method: 'get',
    params: query
  })
}

// 过卡补录
export function addReleaseableRecord(data) {
  return request({
    url: '/bt/btReleaseableList/releaseTest',
    method: 'post',
    data: data
  })
}
